<template>
  <div class="user-page">
    <div class="arrow">
      <van-icon name="arrow-left" size="20px" class="arrow-left"/>
    </div>
    <div class="user">
      <div class="avator">
        <img src="../assets/icon/avator.png" alt="">
      </div>
      <div class="right">
        <div class="name">13823456786</div>
        <div class="tag"><span>申请认证</span></div>
      </div>
    </div>
    <ul>
      <li>
        <p>2000</p>
        <span>动态</span>
      </li>
      <li>
        <p>10</p>
        <span>关注</span>
      </li>
      <li>
        <p>100W+</p>
        <span>粉丝</span>
      </li>
    </ul>
    <div class="bottom">
      <ul>
        <li @click="$router.push('/technology')">
          <div class="left">
            <img src="../assets/icon/热门.svg" alt="">
            <span class="title">热门技术</span>
          </div>
          <span class="arrow">></span>
        </li>
        <li @click="exit">
          <div class="left">
            <img src="../assets/icon/退出.svg" alt="">
            <span class="title">退出登录</span>
          </div>
          <span class="arrow">></span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'user-page',
  methods: {
    exit () {
      this.$dialog.confirm({
        title: '是否退出登录',
        message: '这就走了？不爱我了吗？'
      })
        .then(() => {
          this.$router.push()
        })
        .catch(() => {
        })
    }
  }
}
</script>

<style lang="less" scoped>
.user-page{
  background-image: url(../assets/icon/个人中心bg@2x.png);
  .arrow{
    width: 109px;
    height: 44px;
    line-height: 44px;
    .arrow-left{
      margin-left: 10px;
    }
  }
  .user{
    display: flex;
    align-items: center;
    height: 84px;
    .avator{
      width: 52px;
      height: 52px;
      margin-left: 24px;
    }
    .right{
      margin-left: 12px;
      .name{
        width: 180px;
        height: 26px;
        font-size: 18px;
      }
      .tag{
        width: 62px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        background-image: linear-gradient(124deg, #FFF0CB 0%, #FBCF8D 100%);
        border-radius: 3px;
        span{
          font-size: 11px;
          color: #6F3E00;
        }
      }
    }
  }
  ul{
    list-style: none;
    margin-top: 16px;
    li{
      float: left;
      width: 125px;
      height: 80px;
      text-align: center;
      p{
        margin-top: 8px;
        margin-bottom: 4px;
        font-size: 24px;
        color: #1D2129;
      }
      span{
        font-size: 12px;
        color: #86909C;
      }
    }
  }
  .bottom{
    height: 544px;
    background-image: linear-gradient(180deg, rgba(252,253,255,0.00) 0%, #F7F9FD 12%, #F7F9FD 100%);
    ul{
       list-style: none;
       margin-top: 24px;
       margin-left: 16px;
      li{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 343px;
        height: 52px;
        line-height: 52px;
        .left{
          img{
            margin-left: 16px;
            margin-right: 12px;
            vertical-align: middle;
          }
          .title{
            font-size: 16px;
            color: #1D2129;
          }
        }
        .arrow{
          color: #86909C;
          font-size: 16px;
        }
      }
    }
  }
}
</style>
